# -*- encoding:utf-8 -*-
'''
	testmoviedao.py
	======================
	@descript: 
	@copyright:chinasoft
	@author:zhangsiqi
	@date: 2021-01-27 19:45
	@version:v1.0
'''
import unittest
from dao.moviedao import MovieDao
from entity.movieentity import MovieEntity
class MovieDaoTest(unittest.TestCase):
    def testInsertTable(self):
        var_MovieDao = MovieDao()
        var_MovieEntity = MovieEntity(None,'zhang01','zhang02','zhang03','2020')
        var_result = var_MovieDao.InsertTable(var_MovieEntity)
        print(var_result)
        pass

    def testSelectTable(self):
        var_MovieDao = MovieDao()
        var_result = var_MovieDao.selecttable()
        print(var_result)
        pass
    pass